package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import java.util.Objects;

/**
 * @desc CriterionExecuteCycleDto
 * @使用场景
 */
@Data
public class CriterionExecuteCycleDto extends BaseDto implements Serializable {

  /**
   * 执行周期阶段ID
   */
  @ApiModelProperty("执行周期阶段ID")
  private String executeCycleStageId;

  /**
   * 周期ID
   */
  @ApiModelProperty("周期ID")
  private String cycleId;

  /**
   * 周期名称
   */
  @ApiModelProperty("周期名称")
  private String cycleStandardName;

  /**
   * 周期开始时间
   */
  @ApiModelProperty("周期开始时间")
  private Date cycleStartTime;

  /**
   * 周期结束时间
   */
  @ApiModelProperty("周期结束时间")
  private Date cycleEndTime;

  /**
   * 填报开始时间
   */
  @ApiModelProperty("填报开始时间")
  private Date fillStartTime;

  /**
   * 是否父周期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否父周期")
  private String isFatherCycle;

  /**
   * 是否子周期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否子周期")
  private String isSubCycle;

  /**
   * 是否中期 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否中期")
  private String isMetaphase;

  /**
   * 是否过程周期阶段 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否过程周期阶段")
  private String isProcessCycleStage;

  /**
   * 是否自定义执行周期阶段 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否自定义执行周期阶段")
  private String isDefinedExecuteCycleStage;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      CriterionExecuteCycleDto that = (CriterionExecuteCycleDto) o;
      return  executeCycleStageId == that.executeCycleStageId&&cycleId == that.cycleId&&cycleStandardName == that.cycleStandardName&&cycleStartTime == that.cycleStartTime&&cycleEndTime == that.cycleEndTime&&fillStartTime == that.fillStartTime&&isFatherCycle == that.isFatherCycle&&isSubCycle == that.isSubCycle&&isMetaphase == that.isMetaphase&&isProcessCycleStage == that.isProcessCycleStage&&isDefinedExecuteCycleStage == that.isDefinedExecuteCycleStage;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), executeCycleStageId,cycleId,cycleStandardName,cycleStartTime,cycleEndTime,fillStartTime,isFatherCycle,isSubCycle,isMetaphase,isProcessCycleStage,isDefinedExecuteCycleStage);
    }

}
